import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { CacheService } from './redis/cache.service';
import { CacheModule } from './redis/cache.module';

import { RedisModule} from 'nestjs-redis'
import { UserController } from './user/user.controller';
let options={
  port: 6379,
  host: '127.0.0.1',
  password: '',
  db: 0
}
@Module({
  imports: [
    RedisModule.register(options),
    CacheModule
  ],
  controllers: [AppController, UserController],
  providers: [AppService,CacheService],
})
export class AppModule {}
